package cn.lx.auth.secutity.mock;

import cn.lx.auth.secutity.utils.SessionToUserUtil;

import javax.servlet.*;
import java.io.IOException;

/**
 * @ClassName MockUserContextFilter
 * @Description: //todo
 * @Author: 落雪
 * @CreateDate: 2025/7/14 23:23
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/7/14 23:23
 * @UpdateRemark:
 * @Version: 1.0
 */
public class MockUserContextFilter implements Filter {
    public MockUserContextFilter() {
    }
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        SessionToUserUtil sessToUser = new SessionToUserUtil();
        sessToUser.toMockUser();
        chain.doFilter(request, response);
    }
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }
    @Override
    public void destroy() {
    }
}